package com.xbongbong.pro.detailtab.dto;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.pro.formdata.pojo.SaasNeedRedundantAttrPojo;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

@Getter
@Setter
public class SupplierProductAddDTO extends BaseDTO {

    /**
     * 应用id
     */
    @NotNull(message = "应用id不能为空")
    private Long appId;

    @NotNull(message = "菜单id不能为空")
    private Long menuId;

    private Integer businessType;

    @NotNull(message = "供应商id不能为空")
    private Long dataId;

    /**
     * 产品数据
     */
    private JSONObject data;

    /**
     * saas标识
     * @see com.xbongbong.pro.enums.SaasMarkEnum
     */
    private Integer saasMark;

    private Long formId;

    private JSONArray supplierProducts;

    /**
     * saas所需的特殊传参pojo
     */
    private SaasNeedRedundantAttrPojo saasNeedRedundantAttrPoJo;
}
